package guowei.guliproduct.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import guowei.common.utils.PageUtils;
import guowei.guliproduct.product.entity.AttrEntity;
import guowei.guliproduct.product.entity.AttrGroupEntity;
import guowei.guliproduct.product.vo.AttrGroupAndRelations;
import guowei.guliproduct.product.vo.AttrRelationDelVo;
import guowei.guliproduct.product.vo.SpuItemAttrGroupVo;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author guoguo
 * @email 1573746397@qq.com
 * @date 2023-05-21 17:38:07
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPageCatelogId(Map<String, Object> params, Long catelogId);

    ArrayList<AttrEntity> getAttrAttrGroupTwo(Long attrgroupId);

    void deleteRelation(AttrRelationDelVo[] attrRelationDelVos);

    PageUtils selectNoRelation(Long attrGroupId, Map<String, Object> params);

    ArrayList<AttrGroupAndRelations> selectAttrGroupAndAttrRelations(Long catelogId);

    List<SpuItemAttrGroupVo> getThreeBuSpuId(Long catalogId,Long spuId);
}

